<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全民出游季</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        /* 默认html和body的高度是0，所以导致cover缩放背景图不成功 */
        html {
            height: 100%;
        }

        body {
            background: url(./images/f1_1.jpg) no-repeat center 0;
            background-size: cover;
            height: 100%;
            position: relative;
        }

        .cloud img {
            position: absolute;
            left: 50%;
        }

        .cloud img:nth-child(1) {
            top: 20px;
            left: 40%;
            animation: cloud 1s linear infinite alternate;
        }

        .cloud img:nth-child(2) {
            top: 110px;
            left: 72%;
            animation: cloud 1s linear infinite alternate 0.3s;
        }

        .cloud img:nth-child(3) {
            top: 170px;
            left: 22%;
            animation: cloud 1s linear infinite alternate 0.6s;
        }

        @keyframes cloud {
            to {
                transform: translate(20px);
            }
        }

        .font img {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            animation: font 1s;
        }

        /* 默认 -> 小 -> 大 -> 小 -> 默认 */
        @keyframes font {
            0% {
                transform: translate(-50%, -50%) scale(1);
            }
            25% {
                transform: translate(-50%, -50%) scale(0.1);
            }
            50% {
                transform: translate(-50%, -50%) scale(1.4);
            }
            75% {
                transform: translate(-50%, -50%) scale(0.4);
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
            }
        }

    </style>
</head>
<body>
<div class="cloud">
    <img src="./images/yun1.png" alt="">
    <img src="./images/yun2.png" alt="">
    <img src="./images/yun3.png" alt="">
</div>
<div class="font">
    <img src="images/font1.png">
</div>

</body>
</html>
